package cn.china.xfood.service;

import entity.Usermenu;
import mapper.UsermenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserMenuService implements UsermenuMapper {
    @Autowired
    UsermenuMapper usermenuMapper;
    @Override
    public int insert(Usermenu record) {
        return usermenuMapper.insert(record);
    }

    @Override
    public int insertSelective(Usermenu record) {
        return usermenuMapper.insertSelective(record);
    }

    @Override
    public int selectAll(String orderNumber) {
        return usermenuMapper.selectAll(orderNumber);
    }

    @Override
    public List<Usermenu> selectAllMenu(String orderNumber, int page, int limit) {
        return usermenuMapper.selectAllMenu(orderNumber,page,limit);
    }


}
